list sum c#

56

c# calculate sum of list -

double total = myList.Sum(item => item.Amount);

list sum c# -

int total = monValues.Sum(x => Convert.ToInt32(x));

Comments

Submit
0 Comments